Waypoint Route Trouble

Right-click > Navigate > To Here has a problem

The new Active Route always disappears and I try to recreate it and it disappears again.

Many of my Navobjects and waypoints disappeared. Why?

  1. Try using the “V” shortcut key which shows/hides Hides/shows all navobjects. The only exceptions being the active route and track which are always drawn on the chart canvas.

What causes spurious waypoints which must be deleted?

  1. Condition: Multitude of repeated waypoints, which get copied when a waypoint is dragged. Sometimes a route WP is shifted, two routes are made, one with the name, the other unnamed.
  2. Possible Solutions: Determine if the addition of waypoints are from inadvertently hitting the wrong keys on the keyboard, or the mouse.
  3. The other possiblity is that the navobj change file is corrupted. Close O and try to delete the change file In W8.1 it is found in C:\ProgramData\opencpn/navobj.xml.changes. Normally, after that O will work again.

What causes random waypoints dropped at the cursor

One possibility is that you have the space-bar set to drop a wpt at the boats position. This used to be standard behavior some time ago. If this is a problem, shut down OpenCPN. Open the file opencpn.ini, find the line:

 SpaceDropMark=1  and change it to   SpaceDropMark=0 

Save and restart O.

Waypoint Name: Waypoint properties names box is unchecked. Quick way to checked globally?

So that the names show up beside each waypoint as it is placed? There is not a very easy way, but one at least much easier then you do now.

  1. Run O open the routemanager and select and export the routes you want to change.
  2. Then open the exported route(s) in a editor (notebook?) and do a text find and replace.
  3. Search for “<opencpn:auto_name>1</opencpn:auto_name>”
  4. and replace with “ <opencpn:viz_name>1</opencpn:viz_name> <opencpn:auto_name>1</opencpn:auto_name> ”
  5. Close the editor, run O again and import the altered route(s).

Now you should have all waypoint names visible.

The quick way to change the ScaMin value (ov50 feature) for a lot of waypoints and/or layers?

What is the utility or purpose of the GUID box on the waypoint extended properties page?

The GUID box is not useful for anything but knowing the GUID. Knowing the GUID is good to be able to find a specific object in OpenCPN's GPX data when processed in a text editor. Doing things with OpenCPN's GPX data in a text editor is something you normally don't do, but when you do, you are most happy that you know the GUID of a certain object.

  1. Opening the properties page, and adding a link to a JPG-image works fine. If I now edit the link, the image will no longer be displayed.
    1. The button “Edit” changes state. You click on it to switch the links above to “edit mode”, each click on any of the links opens the dialog allowing you to change it's parameters. After editing the link, you have to click on the button again and then a click on the links will again start opening whatever they link to. What will happen when you click on the link is explained in the text below the buttons and changes according to the “Edit button”. If it says “Links are opened in the default browser”, the linked file or internet address should open, given it exists, which gets us to..
  2. Similarily, if I export a waypoint with a link to another computer, the link will not open.
    1. The link is just a link, the file you link to is NOT “included” in the waypoint. When you transfer the waypoints to another computer, for links to local files to keep working, the files you link to would have to exist on the exactly same place on your disk there. Eg. The file that on computer A is C:\MyDocuments\MyPicture.jpg would have to exist with exactly the same file name, in the exactly same folder, on the exactly same disk on computer B.

How do I save many waypoints to a Layer?

Question: Layers is a good feature, however I need a tool to create a layer with many waypoints (say 200 waypoints in Fiji). I'd like create a layer of all visible waypoints in a chart area that I have zoomed into. After creating the layer, I'd like to delete them from the waypoints list with a single command.

Answer: Using the Route & Mark Manager

Activating route at desired waypoint?

- Activate the route first. Then you can activate a specific waypoint within it.

How to import Routes?

  1. Receive waypoints in GPX-file from an external source which are arranged in the intended travel sequence. However, the GPX doesn't include direct routes between those waypoints.
  2. Import the waypoints to OpenCPN and the order in the Waypoint and Route Manager is correct.
  3. How to create a direct route between those waypoints in OpenCPN automatically without editing the gpx-file?
    1. Best way to do this, by “forcing the text file to be generated as route points”, then generate Route from track in the Route & mark manager.
    2. Manual Route creation by Start route creation. (Ctrl + r or right mouse click menu), Then click first WP and accept “Use nearby WP” and so on.
    3. GPS Babel may help you out if the handcrafting feels annoying.
    4. Use a Text Editor to form the xml list of waypoints into a route to conform to the xml format.

<CODE> <rte>

  <name>test2edit</name>
  <extensions>
     [DATA}
  </extensions>
  <rtept lat="57.679627692" lon="11.796954074">
     [ROUTE DATA]
  </rtept>
  <rtept lat="57.679627692" lon="11.796954074">
     [ROUTE DATA]
  </rtept>

<rte> </CODE>

How to synchronize Routes, Waypoints & Marks with another computer?

Three ways to synchronize:

The navobj.xml file resides in the same folder as the opencpn.ini settings file, under the OpenCPN User folder. For windows this is usually “C:\programdata\opencpn\”. The navobject.xml file is in in fact a .gpx file containing all waypoints/routes/tracks. See Navigation Data Backup for more information.

Make a script or batch file to copy to navobject.xml file. Make an icon for the batch file on your desktop. Examples: Make an icon for the batch file on your desktop.

Copy-Routes-AB.bat

Copy \\ComputerA-name\C:\ProgramData\opencpn\navobj.xml \\ComputerB-name\C:\ProgramData\opencpn\navobj.xml

Copy-Routes-BA.bat

Copy \\ComputerB-name\C:\ProgramData\opencpn\navobj.xml \\ComputerA-name\C:\ProgramData\opencpn\navobj.xml

For more discussion see Cruiser Forum Thread Real-time sharing waypoints and routes

Can I restore my Route, Wpts or Track from backups?

If you did delete the original [route, wpt, track], you may still have an automatic backup in an older navobj.xml.[1-5] file. Don't restart Opencpn again, until you retrieve the data you want. See Navigation Data Backup for more information.

Why are Routes, Tracks and Anchorwatch not saved?

This problem has been traced to shutdown management. Please see Tracker FS#2245 and OpenCPN and Linux powerup/down management For Windows and MAC users it is suggested that it is best to shutdown OpenCPN first, then shutdown the Computer.

Split a Route

Question: How to split a long route into shorter segments with each segment having its own start and end waypoint? When the split function is used, I get a new route name with an _B suffix, but it's still physically “connected” to the original route (now with a _A suffix) with a segment line connecting the two. I want to end up with two distinct routes that are not connected. How do I do that? Answer: The point where you did split the route exists now twice as start of one and end of the other route. Just hide one of the two routes and move the waypoint you are interested in as you like. Or insert additional waypoints and delete the first one.

Imported Routes, How to remove duplicates easily?

Deleted all routes in the Route & Mark Manager. Found a gpx Route File folder under documents on my computer. Importing all gpx routes into Route & Mark Manager from Route folder by highlighting all the routes. Now multiple routes with the same name show. How can I correct this. Importing a route at a time is tedious.

I had previously exported all visible routes and had that file in my GPX Route folder. What happened: I imported single listed routes by highlighting all the files in my GPX Route folder. However I didn't notice the gpx file which had a group of routes contained in it. Once I removed the gpx file with a group of files, the import gpx worked as anticipated.

How to send routes to GPS via USB or via NMEA Serial connection

There are so many GPS models that the answer is a bit complicated. A lot depends on which GPS model you have. OpenCPN can communicate with many GPS receivers via a serial connection. Some GPS receivers have a serial connector that can be wired to a DB-9 serial connector. Newer ones have a USB port that will appear like a serial connection to your computer. Still newer ones appear to your computer like an external drive.

If your GPS receiver shows up as a serial connection on your computer chances are you can upload routes and waypoints directly to it from within OpenCPN. The GPS and OpenCPN have to be set to the same communication protocol. If you normally have them set to NMEA (for updating the OpenCPN chart display with position data from the GPS) you may need to change a Garmin GPS to the GRMN proprietary protocol to upload routes, waypoints, and tracks. If your GPS doesn't show up as a serial connection you may still be able to transfer routes and waypoints to it outside of OpenCPN. If the GPS appears as an external drive on your computer try this. Use OpenCPN to export your routes and waypoints to a GPX file (read the User Manual section on the Route & Mark Manager for more details). Then use your operating system to copy the GPX file from your hard drive to your GPS. If that doesn't work, try GPSBabel or EasyGPS for the transfer.

Depending on your GPS model and the way the route was created in OpenCPN you may wind up with a route on your GPS or just a list of waypoints. The route points may or may not appear as waypoints on the GPS.

There are also some good Cruiser Forum threads about Garmin

I converted a Track accidentally to a Route. Can I get the track back?

This depends on what “a bit ago” actually is - (if you have since started OpenCPN more than 5 times, every time did some change to the navigation objects and did not change the default settings for backups, you don't have it anymore) - If you do not have that backup anymore, you may still export the route as GPX file which you may later edit in a text editor and make a track again (But you already have lost some precision as during the conversion to route the points recorded in the original track are interpolated to limit their total number) - Later: your track seems to still be there as the yellow highlight it has seems to be visible, so you should be good just deleting the route.

Export Selected Tracks, only last track appears to be selected in GE?

When you export multiple routes or tracks in one operation they are all written to a single GPX file. That might be why you think only the last one is being exported. When you import the GPX file all the routes or tracks it contains will be restored. Note: In GE the Track looks strange, although all are marked visible, only one track at a time is shown.

How to join or combine two or more Routes into a Single Route?

  1. Mark the routes in the Route&Mark Manager, recording the order.
  2. Then export each route as a gpx file.
  3. Open the first file in a text editor.
  4. Open the next file in the text editor and copy the code between <rte> … </rte> not including them.
  5. Then paste the code directly before the </rte> at the end of the first file.
  6. Continue until done. Save the first file.
  7. Import the gpx file with a new name.

How to use XBox with OpenCPN

Can I import SeaClear routes and waypoints into OpenCPN?

Can I import Maxsea Waypoints and Tracks?

No, not directly, they are in different formats. But you can convert them with the GPS Utility Program. Here's an older writeup Conversion of MaxSea Routes and Tracks Use an external tool to convert the proprietary Maxsea data to the open GPX format. Either the free C2GPXKML or shareware GPSUtility could help. Also if you have access to Maxsea, export all waypoints as Gpx and OpenCPN will read the gpx file. If different color waypoints is used, export them separately and and in a text editor change icon name to an icon used in OpenCPN.

Can WPL Nema waypoints be imported?

See CF Adding waypoint from outside OpenCPN

Yes the NMEA WPL can be handled by OCPN but not the way you may want.

How to save waypoints with date and time

Detail: I make videos of the seabed and I would like to be able to drop a mark on the gps track when the camera hit the bottom and save this marker with the date and time. For now I can use the Man Over Board marker, but I don't think that's how it should be used.

Answer: You can drop waypoint marks using just the spacebar. No popup appears if you are normal zoom levels. OpenCPN records the mark and continues. Fishermen use this feature to mark locations of gear they drop. The User Manual describes this feature

The marks created using the spacebar are saved in a file called “navobj.xml”. Here is how one looks:

<wpt lat="37.838435000" lon="-122.656498333">
 <time>2023-03-10T06:01:33Z</time>
 <sym>triangle</sym>
 <type>WPT</type>
 <extensions>
  <opencpn:guid>64d5ffff-1836-457e-a85f-ba7b5323ffff</opencpn:guid>
  <opencpn:viz_name>1</opencpn:viz_name>
  <opencpn:arrival_radius>0.050</opencpn:arrival_radius>
  <opencpn:waypoint_range_rings visible="false" number="0" step="1" units="0" colour="#FF0000" />
  <opencpn:scale_min_max UseScale="false" ScaleMin="2147483646" ScaleMax="0" />
  <opencpn:action>add</opencpn:action>
 </extensions>
</wpt>

You can see the GPS coordinates at the moment the spacebar was pressed along with the computer UTC time. If the computer time is accurate, then so will the time recorded with the waypoint.

Why doesn't Anchor Watch appear in the right click menu?

https://github.com/OpenCPN/OpenCPN/pull/2571